package com.lagou.service.impl;

import com.lagou.pojo.User;
import com.lagou.service.MailService;
import com.lagou.tools.EmailUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.apache.dubbo.config.annotation.Service;

@Service
public class MailServiceImpl implements MailService {

    @Autowired
    EmailUtil emailUtil;

    @Override
    public void sendVerificationCode(User user) {
        emailUtil.sendMail(user);
    }
}
